package com.itzzj.entity;

import com.itzzj.common.anno.Sensitive;
import com.itzzj.common.strategy.SensitiveStrategy;
import lombok.Data;

/**
 * @Sensitive 对属性进行脱敏
 * strategy：指定脱敏的策略
 */
@Data
public class Person {

    @Sensitive(strategy = SensitiveStrategy.USERNAME)
    private String realName;

    @Sensitive(strategy = SensitiveStrategy.ADDRESS)
    private String address;

    @Sensitive(strategy = SensitiveStrategy.PHONE)
    private String phoneNumber;

    @Sensitive(strategy = SensitiveStrategy.ID_CARD)
    private String idCard;

}




































